import request from "@/utils/request";

//全部商品搜索
export const searchAll=(data)=>request({
    method:'post',
    url:'/mall/product/allProduct',
    data
})


//修改用户信息
export const updateUser=(data)=>request({
    method:'put',
    url:'/mall/user/updateUser',
    data
})


//获取三级联动地址
export const getAddress=()=>request({
    method:'get',
    url:'/mall/user/area'
})

//获取用户优惠卷
export const getCoupon=(status)=>request({
    method:'get',
    url:`/mall/couponHistory/couponList/${status}`
})